//
//  PayStrategy.h
//  ProjectPublic
//
//  Created by ac-hu on 2018/7/12.
//  Copyright © 2018年 ac hu. All rights reserved.
//

#import <Foundation/Foundation.h>

////客服端得到的支付结果
//typedef void (^succeedNetPay)(id result);
//typedef void (^failNetPay)(NSString *failStr);

//客服端得到的支付结果
typedef void (^succeedPay)(NSString *str);
typedef void (^failPay)(NSString *failStr);

////服务器验证的支付结果
//typedef void (^succeedVerifyPay)(id result);
//typedef void (^failVerifyPay)(NSString *failStr);
@protocol PayStrategyProtocol
@required

-(void)payOrder:(id)order succeed:(succeedPay)succeed fail:(failPay)fail;

-(void)monitorResult:(NSURL *)url;
////向服务器发起订单请求-支付开始
//-(void)paySendNet:(id)order succeed:(succeedPay)succeed fail:(failPay)fail;
////向服务器发起支付结果请求，交易是否成功
//-(void)payVerifyNet:(id)order succeed:(succeedVerifyPay)succeed fail:(failVerifyPay)fail;
@end
